﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Fuse8.ContentManagementFramework.BizFacade.Services;
using Fuse8.ContentManagementFramework.Domain;
using Fuse8.ContentManagementFramework.Domain.Special;
using Fuse8.DomainFramework.BusinessService;

namespace Fuse8.ContentManagementFramework.Administration.Models
{

    [Serializable]
    public class CmsAdminDomainModel
    {
        [Required]
        public string Hostname { get; set; }

        [Required]
        public int? SiteId { get; set; }

        public IEnumerable<CmsSite> AllSites
        {
            get
            {
                var siteService = new CmsSiteService();
                var sites = siteService.FindAll();
                return sites;
            }
        }
    }

}